<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h5>ognl 表达式</h5>

<p th:text="${session.book.name}"></p>
<p th:text="${session.book.getPrice()}"></p>

<br>
<h5>选择（*）表达式</h5>
<div th:object="${session.book}">
    <p th:text="*{name}"></p>
    <p th:text="*{getPrice()}"></p>
</div>
</body>
</html>